package com.sale24h.data;

import org.json.JSONException;
import org.json.JSONObject;

public class clsBan
{
	private int id;
	private String tenban;
	private int trangthai;
	private Boolean active;
	private clsXuatBan xbObj;
	public int getId()
	{
		return id;
	}
	public void setId(int id)
	{
		this.id = id;
	}
	public String getTenban()
	{
		return tenban;
	}
	public void setTenban(String tenban)
	{
		this.tenban = tenban;
	}
	public int getTrangthai()
	{
		return trangthai;
	}
	public void setTrangthai(int trangthai)
	{
		this.trangthai = trangthai;
	}
	public Boolean getActive()
	{
		return active;
	}
	public void setActive(Boolean active)
	{
		this.active = active;
	}
	public void InitDatafromJSON(JSONObject jban) throws JSONException
	{
		this.id=jban.getInt("id");
		this.tenban=jban.getString("tenban");
		this.trangthai=jban.getInt("trangthai");
		//this.active=jban.getInt("active")==1?true:false;		
	}
	public clsXuatBan getXbObj()
	{
		return xbObj;
	}
	public void setXbObj(clsXuatBan xbObj)
	{
		this.xbObj = xbObj;
	}
}
